<?php
//WAP端控制器
namespace Wap\Controller;
use Think\Controller;
class IndexController extends Controller {

    //ThinkPHP的构造函数
    public function _initialize() {
        //自动加载的类
        //new \Org\Autoload();
        //根据配置来开启Redis
        /*if(C('REDIS_OPEN')==1){
            //300秒
            S(array('type'=>'redis','host'=>'127.0.0.1','port'=>'6379','prefix'=>'index','expire'=>300));
        }*/
    }

    //首页
    public function index(){
        $data['title']='找金银网';
        $this->assign("data", $data);
        $this->display();
    }

    //注册
    public function reg(){
        $data['title']='注册_找金银网';
        $this->assign("data", $data);
        $this->display();
    }

}